﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;

namespace HobSoft.SoccerBet2014.Domain.Models
{
    using Core;
    [Serializable]
    [DataContract]
    public class BFMarketCategory : IModel
    {
        private byte _id;
        [PrimaryKey]
        [Key]
        [Required]
        [DataMember(IsRequired = true)]
        public byte ID
        {
            get { return _id; }
            set { _id = value; }
        }


        private string _name;
        [Required]
        [MaxLength(200)]
        [MinLength(1)]
        [DataMember(IsRequired = true)]
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        private Odds.MarketType _oddsType;
        [Required]
        [DataMember(IsRequired = true)]
        public Odds.MarketType OddsType
        {
            get { return _oddsType; }
            set { _oddsType = value; }
        }

        private decimal _handicap;
        [DataMember]
        public decimal Handicap
        {
            get { return _handicap; }
            set { _handicap = value; }
        }
        
        
    }
}
